package WuHanTrainStation;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

//主菜单类
public class Separation {

    public void separation() throws IOException, ClassNotFoundException {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        int judgment = 0;
        do {
            System.out.println("******欢迎使用武汉铁路局铁路管理系统******");
            System.out.println("请选择你是否是管理员：");
            System.out.println("1.是");
            System.out.println("2.否");
            System.out.println("3.退出");
            switch (bufferedReader.readLine()) {
                case "1":
                    firstAdministratorMenu firstAdministratorMenu = new firstAdministratorMenu();
                    firstAdministratorMenu.administratorStart();
                    firstAdministratorMenu.administratorUtility();
                    break;
                case "2":
                    firstMenu firstMenumenu = new firstMenu();
                    firstMenumenu.start();
                    firstMenumenu.utility();
                    break;
                case "3":
                    System.exit(0);
                default:
                    System.out.println("功能号不存在！请正确输入功能号！");
                    judgment = 1;
                    break;
            }
        } while (judgment == 1);
    }

}